package com.toocms.jinjuhang.widget.icon_progress

enum class ProgressGravity(val code: Int) {
    TOP(1),
    CENTER(2),
    BOTTOM(3);

    companion object {
        fun codeToGravity(code: Int) = when (code) {
            TOP.code -> TOP
            CENTER.code -> CENTER
            BOTTOM.code -> BOTTOM
            else -> CENTER
        }
    }
}